const webpack = require('webpack');
const baseconfig = require('./webpack.base')
const merge = require('webpack-merge')
const { rootResolve, distResolve } = require('./unit.js');
const htmlWebpackPlugin = require('html-webpack-plugin');

module.exports = merge.merge(baseconfig, {
	mode: "development",

	devServer: {
		host: 'localhost',
		port: 8089,    //端口
		open: true,    //自动打开页面，
		compress: true, // 服务器压缩式，一般为`true`，
		inline: true, // 默认为true,在打包时会注入一段代码到最后的js中，用来监视页面的改动而自动刷新页面
	},
})